/********************************************************/
/*	Skyplane class  by George Chew							*/
/*	For use in GeorgeLib								*/
/*	Created Apr 2013									*/
/*														*/
/*	Version 0001										*/
/********************************************************/

#ifndef __SKYPLANE_H__
#define __SKYPLANE_H__

#include "stdafx.h"
#include "Logger.h"
#include "Texture.h"

namespace GeorgeLib
{

class  Skyplane
{

private:

	typedef struct
	{
		float x,y,z,u,v;
		uint color;
	} Vertex;

	Vertex* vertices; // Generate Plane
	float decrement; // of skyplane
	int numVertices; // of skyplane
	ushort * indices;
	int numIndices;
	
public:
	Skyplane(void);			// Constructor
	~Skyplane(void);			// Destructor

	void	init	(int slices, float radius, float height, float hTile = 1.0f, float vTile = 1.0f);

	void	draw	(Texture texture, float size);
	void	draw	(MultiTexture texture, float size);
};

} // namespace GeorgeLib

#endif // __SKYPLANE_H__ //